package com.example.activity_service.controller;

import com.example.activity_service.service.MsQueryService;
import com.example.activity_service.service.YhQueryservice;
import com.example.activity_service.vo.Card;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@ResponseBody
public class YhController {

    @Autowired
    YhQueryservice service;


    @RequestMapping("/yhj")
    public List<Card>yhj(Card card){
        List<Card> list =  service.yhj();
        return list;
    }

}
